package model

import (
	"openapi.itspire.cn/database"
)

type Link struct {
	Id         	  uint64 `json:"id"`
	UserId        uint64 `json:"userId"`
	LinkName      string `json:"linkName"`
	LinkUrl       string `json:"linkUrl"`
	ContactType   uint8  `json:"contactType"`
	Remarks       string `json:"remarks"`
	Status        uint8  `json:"status"`
	CreateTime    uint64 `json:"createTime"`
	DeleteTime    uint64 `json:"deleteTime"`
	AuditTime     uint64 `json:"auditTime"`
	Nickname      string `json:"nickname" gorm:"-"`
	Contact       string `json:"contact" gorm:"-"`
}

func (c Link) GetTableName() string {
	return database.Ins.NewScope(c).TableName()
}

